<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import SearchInput from './components/SearchInput.vue';
</script>

<template>
  <header>
      <nav>
        <RouterLink to="/order">我的订单</RouterLink>
        <RouterLink to="/cart">购物车</RouterLink>
        <RouterLink to="/favorite">收藏夹</RouterLink>
        <RouterLink to="/merchant">商家入口</RouterLink>
      </nav>
      <img src="@/assets/logo.png" alt="Logo" @click="$router.push('/')"/>
      <SearchInput></SearchInput>
  </header>

  <RouterView />
</template>
